<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上传文章</title>
    <link rel="stylesheet" href="/css/upload.css">
</head>
<body>
<div id="app">
    <h1>上传文章</h1>
    <form id="upload-form">
        <input type="text" id="title" placeholder="标题" required />
        <textarea id="content" placeholder="内容" required></textarea>
        <select id="type" required>
            <option value="" disabled selected>选择分类</option>
        </select>
        <button type="submit">上传</button>
    </form>
    <div id="upload-response"></div>
    <button onclick="window.location.href='index.html'">返回主页面</button>
</div>
<script src="/js/upload.js"></script>
</body>
</html>
